import { IsIn, IsNumber } from 'class-validator'
import { ResourceStatus } from '../models/resource.model'
import { enumToValues } from '@boticord/common'

export class ChangeResourceStatusDto {
  @IsNumber()
  @IsIn(enumToValues(ResourceStatus))
  declare status: ResourceStatus
}